const route = [{
    path: '/product',
    component: () => import('@/layout/index.vue'),
    name: 'Product',
    meta: {
        title: '商品管理',
        icon: 'Goods',
        permission: 'Product'
    },
    redirect: '/product/bike',
    children: [
        {
            path: '/product/bike',
            component: () => import('@/views/bikeManage/list.vue'),
            name: 'Bike',
            meta: {
                title: '单车管理',
                icon: 'ShoppingCartFull',
                hidden: false,
                permission: 'Bike'
            },
        },
        {
            path: '/product/addBike',
            component: () => import('@/views/bikeManage/bikeForm.vue'),
            name: 'addBike',
            meta: {
                title: '新增单车',
                icon: 'ShoppingCartFull',
                hidden: true,
                permission: 'AddBike',
            },
        },
        {
            path: '/product/editBike',
            component: () => import('@/views/bikeManage/bikeForm.vue'),
            name: 'editBike',
            meta: {
                title: '编辑单车',
                icon: 'ShoppingCartFull',
                hidden: true,
                permission: 'UpdateBike',
            },
        },
        {
            path: '/product/brand',
            component: () => import('@/views/brandMange/list.vue'),
            name: 'Brand',
            meta: {
                title: '品牌管理',
                icon: 'ChromeFilled',
                hidden: false,
                permission: 'Brand',
            },
        },
        {
            path: '/product/addBrand',
            component: () => import('@/views/brandMange/bandForm.vue'),
            name: 'addBrand',
            meta: {
                title: '新增品牌',
                icon: 'ChromeFilled',
                hidden: true,
                permission: 'AddBrand',
            },
        },
        {
            path: '/product/editBrand',
            component: () => import('@/views/brandMange/bandForm.vue'),
            name: 'editBrand',
            meta: {
                title: '编辑品牌',
                icon: 'ChromeFilled',
                hidden: true,
                permission: 'UpdateBrand',
            },
        },
    ],
}]

export default route;
